﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Person/Person.Master" AutoEventWireup="true" CodeBehind="cellect.aspx.cs" Inherits="ZF.WS.shop.cellect" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  <div class="location   mt10_">
        您现在的位置：<a href="/person/index.aspx">会员中心</a> >> <a href="<%=this.Request.Url %>">商品收藏</a>
    </div>
    <div>&nbsp;</div>
    <div class="tabContainer">
        <zf:GridView ID="gvList" runat="server" OnSorting="gvListSorting" OnPageIndexChanging="gvListPageChanging">
            <Columns>
                <zf:TemplateField IsKeyField="true" DefaultSortField="true" DefaultSortDirection="Descending" SortExpression="Cellect.CellectId">
                    <ItemTemplate>
                        <asp:Label runat="server" ID="KeyLabel" Text='<%# Eval("Cellect.CellectId")%>'></asp:Label>
                    </ItemTemplate>
                </zf:TemplateField>
                <zf:TemplateField IsCheckField="true">
                </zf:TemplateField>
                <zf:TemplateField IsSerialNoField="true">
                </zf:TemplateField>
                 <zf:TemplateField HeaderText="图片" DefaultSortDirection="Ascending" >
                    <ItemTemplate>
                    <img src="/photo/shop/<%# Eval("Merc.FirstPhoto")%>" style="width:120px; height:120px" />
                    </ItemTemplate>
                </zf:TemplateField>
                <zf:TemplateField HeaderText="商品名称" DefaultSortDirection="Ascending" >
                    <ItemTemplate>
                    <%# Eval("Merc.Name")%>
                    </ItemTemplate>
                </zf:TemplateField> 
                <zf:TemplateField HeaderText="价格" DefaultSortDirection="Ascending" >
                    <ItemTemplate>
                    <%# Eval("Merc.CPrice")%>
                    </ItemTemplate>
                </zf:TemplateField>
                <zf:TemplateField HeaderText="收藏日期" DefaultSortDirection="Ascending" SortExpression="Cellect.AddTime">
                    <ItemTemplate>
                        <%#  ((DateTime)Eval("Cellect.AddTime")).ToShortDateString()%>
                    </ItemTemplate>
                </zf:TemplateField>
                <zf:TemplateField HeaderText="操作">
                    <ItemTemplate>
                    
                         <a href='/shop/info.aspx?id=<%# Eval("Cellect.CellectId")%>' target="_blank">
                                浏览</a>  |
                        <zf:LinkButton ID="LinkButton1" runat="server" OnClick="Delete" CommandArgument='<%# Eval("Cellect.CellectId") %>'
                            OnClientClick="return confirm('是否确定要删除此记录');">删除</zf:LinkButton>
                    </ItemTemplate>
                </zf:TemplateField>
            </Columns>
        </zf:GridView>
    </div>
 
   <!--列表 结束-->
    <div class="mt5_ fc_">
    </div>
    <!--自定义按钮 开始-->
    <div class="btnContainer mt10_">
        <span class="fl_ mr10_">
            <input type="checkbox" class="checkAll" bind=".tab" />选中本页显示的所有记录</span>
        <zf:LinkButton ID="LinkButton1" runat="server" OnClick="Delete" CommandArgument='select'
            OnClientClick="return confirm('是否确定要删除选中记录');">删除选中的记录</zf:LinkButton>
        
    </div>
    <!--自定义按钮 结束-->
</asp:Content>
